package com.headwire.kw.helpers;

import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;



public class FilePrinter
{
	public static boolean printFile(String filename, List<String> lines) {
		try {
			PrintWriter pw = new PrintWriter(new File(filename));
			for(String s : lines) {
				pw.println(s);
			}
			pw.close();
		} catch(IOException e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}
}